.class public final Lnbisdk/pi;
.super Lnbisdk/gb;


# instance fields
.field private ke:Lnbisdk/iz;

.field private vb:Lnbisdk/iq;


# direct methods
.method public constructor <init>(Lnbisdk/iq;)V
    .locals 0

    invoke-direct {p0}, Lnbisdk/gb;-><init>()V

    iput-object p1, p0, Lnbisdk/pi;->ke:Lnbisdk/iz;

    iput-object p1, p0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    return-void
.end method

.method private jX()V
    .locals 2

    const-string v0, "road"

    invoke-static {v0}, Lnbisdk/qy;->P(Ljava/lang/String;)Lnbisdk/jg;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    invoke-virtual {v1, v0}, Lnbisdk/iq;->e(Lnbisdk/jg;)V

    :cond_0
    const-string v0, "traffic"

    invoke-static {v0}, Lnbisdk/qy;->P(Ljava/lang/String;)Lnbisdk/jg;

    move-result-object v0

    if-eqz v0, :cond_1

    iget-object v1, p0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    invoke-virtual {v1, v0}, Lnbisdk/iq;->e(Lnbisdk/jg;)V

    :cond_1
    const-string v0, "route"

    invoke-static {v0}, Lnbisdk/qy;->P(Ljava/lang/String;)Lnbisdk/jg;

    move-result-object v0

    if-eqz v0, :cond_2

    iget-object v1, p0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    invoke-virtual {v1, v0}, Lnbisdk/iq;->e(Lnbisdk/jg;)V

    :cond_2
    const-string v0, "satellite"

    invoke-static {v0}, Lnbisdk/qy;->P(Ljava/lang/String;)Lnbisdk/jg;

    move-result-object v0

    if-eqz v0, :cond_3

    iget-object v1, p0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    invoke-virtual {v1, v0}, Lnbisdk/iq;->e(Lnbisdk/jg;)V

    :cond_3
    const-string v0, "hybrid"

    invoke-static {v0}, Lnbisdk/qy;->P(Ljava/lang/String;)Lnbisdk/jg;

    move-result-object v0

    if-eqz v0, :cond_4

    iget-object v1, p0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    invoke-virtual {v1, v0}, Lnbisdk/iq;->e(Lnbisdk/jg;)V

    :cond_4
    return-void
.end method


# virtual methods
.method public final a(Lnbisdk/dz;)V
    .locals 1

    invoke-super {p0, p1}, Lnbisdk/gb;->a(Lnbisdk/dz;)V

    iget-object v0, p0, Lnbisdk/pi;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1}, Lnbisdk/iz;->a(Lnbisdk/dz;)V

    return-void
.end method

.method public final a(Lnbisdk/dz;I)V
    .locals 1

    invoke-super {p0, p1, p2}, Lnbisdk/gb;->a(Lnbisdk/dz;I)V

    iget-object v0, p0, Lnbisdk/pi;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1, p2}, Lnbisdk/iz;->a(Lnbisdk/dz;I)V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V
    .locals 1

    invoke-super {p0, p1, p2}, Lnbisdk/gb;->a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V

    iget-object v0, p0, Lnbisdk/pi;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1, p2}, Lnbisdk/iz;->a(Lnbisdk/dz;Lcom/navbuilder/nb/NBException;)V

    invoke-direct {p0}, Lnbisdk/pi;->jX()V

    return-void
.end method

.method public final a(Lnbisdk/dz;Lnbisdk/fk;)V
    .locals 18

    const-string v3, "maptile-source"

    move-object/from16 v0, p2

    move-object v1, v3

    invoke-virtual {v0, v1}, Lnbisdk/fk;->V(Ljava/lang/String;)Ljava/util/Enumeration;

    move-result-object v15

    :cond_0
    invoke-interface {v15}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v15}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lnbisdk/fk;

    const-string v3, "internal-source"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v3

    if-eqz v3, :cond_1

    const/4 v3, 0x1

    move v8, v3

    :goto_0
    const-string v3, "url"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v3

    const-string v4, ""

    if-eqz v3, :cond_3

    const-string v4, "value"

    invoke-static {v3, v4}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    move-object/from16 v16, v3

    :goto_1
    const-string v3, "gen"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    const-string v3, "projection"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string v3, "url-args-template"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-virtual {v0, v1}, Lnbisdk/fk;->V(Ljava/lang/String;)Ljava/util/Enumeration;

    move-result-object v17

    :goto_2
    invoke-interface/range {v17 .. v17}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-interface/range {v17 .. v17}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lnbisdk/fk;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    move-object v0, v3

    move-object/from16 v1, v16

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "template"

    move-object/from16 v0, p1

    move-object v1, v4

    invoke-static {v0, v1}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const-string v3, "min-zoom"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v3

    long-to-int v9, v3

    const-string v3, "max-zoom"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v3

    long-to-int v10, v3

    const-string v3, "cache-id"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v3

    long-to-int v11, v3

    const-string v3, "tile-size"

    move-object/from16 v0, p1

    move-object v1, v3

    invoke-static {v0, v1}, Lnbisdk/iq;->b(Lnbisdk/fk;Ljava/lang/String;)J

    move-result-wide v3

    long-to-int v14, v3

    const-string v12, ""

    const-string v13, ""

    new-instance v3, Lnbisdk/jg;

    const-string v4, "type"

    move-object/from16 v0, p1

    move-object v1, v4

    invoke-static {v0, v1}, Lnbisdk/ok;->i(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct/range {v3 .. v14}, Lnbisdk/jg;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZIIILjava/lang/String;Ljava/lang/String;I)V

    invoke-static {v3}, Lnbisdk/qy;->c(Lnbisdk/jg;)Z

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/pi;->ke:Lnbisdk/iz;

    move-object v4, v0

    move-object v0, v4

    move-object/from16 v1, p0

    move-object/from16 v2, p2

    invoke-interface {v0, v1, v2}, Lnbisdk/iz;->a(Lnbisdk/dz;Lnbisdk/fk;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/pi;->vb:Lnbisdk/iq;

    move-object v4, v0

    invoke-virtual {v4, v3}, Lnbisdk/iq;->e(Lnbisdk/jg;)V

    goto :goto_2

    :cond_1
    const/4 v3, 0x0

    move v8, v3

    goto/16 :goto_0

    :cond_2
    return-void

    :cond_3
    move-object/from16 v16, v4

    goto/16 :goto_1
.end method

.method public final a(Lnbisdk/ri;)V
    .locals 4

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_0

    invoke-static {}, Lnbisdk/cq;->cn()V

    :cond_0
    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    const/16 v1, 0x16

    invoke-virtual {v0, v1}, Lnbisdk/ix;->isEnabled(I)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    const/16 v1, 0x1a

    invoke-virtual {v0, v1}, Lnbisdk/ix;->au(I)I

    move-result v0

    const-string v1, "screen-width"

    int-to-long v2, v0

    invoke-static {p1, v1, v2, v3}, Lnbisdk/iq;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    const/16 v1, 0x1b

    invoke-virtual {v0, v1}, Lnbisdk/ix;->au(I)I

    move-result v0

    const-string v1, "screen-height"

    int-to-long v2, v0

    invoke-static {p1, v1, v2, v3}, Lnbisdk/iq;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    const/16 v1, 0x1c

    invoke-virtual {v0, v1}, Lnbisdk/ix;->au(I)I

    move-result v0

    const-string v1, "screen-resolution"

    int-to-long v2, v0

    invoke-static {p1, v1, v2, v3}, Lnbisdk/iq;->a(Lnbisdk/ri;Ljava/lang/String;J)V

    const-string v0, "en-US"

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/ix;->gQ()Lnbisdk/hj;

    move-result-object v1

    if-eqz v1, :cond_1

    const/16 v0, 0x1d

    invoke-interface {v1, v0}, Lnbisdk/hj;->L(I)Ljava/lang/String;

    move-result-object v0

    :cond_1
    const-string v1, "language"

    invoke-virtual {p1, v1, v0}, Lnbisdk/ri;->b(Ljava/lang/String;Ljava/lang/String;)V

    new-instance v0, Lnbisdk/ri;

    const-string v1, "want-extended-maps"

    invoke-direct {v0, v1}, Lnbisdk/ri;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v0}, Lnbisdk/ri;->d(Lnbisdk/ri;)V

    :cond_2
    invoke-direct {p0}, Lnbisdk/pi;->jX()V

    return-void
.end method

.method public final b(Lnbisdk/dz;)V
    .locals 1

    invoke-super {p0, p1}, Lnbisdk/gb;->b(Lnbisdk/dz;)V

    iget-object v0, p0, Lnbisdk/pi;->ke:Lnbisdk/iz;

    invoke-interface {v0, p1}, Lnbisdk/iz;->b(Lnbisdk/dz;)V

    invoke-direct {p0}, Lnbisdk/pi;->jX()V

    return-void
.end method

.method protected final getType()Ljava/lang/String;
    .locals 1

    const-string v0, "maptile-source"

    return-object v0
.end method
